package com.base.common.edu.mapper;

import com.base.common.edu.entity.StuAccountLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @Author Maple.Chen
 * @Description 数据交互层 - 学生账户收支记录管理
 * @Date 17:47 2021/2/23
 **/
@Mapper
@Repository
public interface StuAccountLogMapper {

    // 新增
    int addStuAccountLog(@Param("stu_a_log") StuAccountLog stuAccountLog);
    // 删除
    int delStuAccountLog(String stu_ac_log_id);
    // 查询
    List<StuAccountLog> queryStuAccountLog(@Param("stu_a_log") StuAccountLog stuAccountLog);
    // 修改
    int updateStuAccountLog(@Param("stu_a_log") StuAccountLog stuAccountLog);
    // 根据学生id查询相关记录
    List<StuAccountLog> queryStuAccountLogByStuId(@Param("stu__id") String stu__id, @Param("startTime") Date startTime, @Param("endTime")Date endTime, @Param("bizType") Integer bizType);
}
